﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Demo.Framework.OOP
{
    // Interface can have an event but not a delegate type defined
    // Interfaces cannot have fields
    // Delegates have to be defined outside the interface
    public delegate void ServerEventHandler(object sender, EventArgs e);
    public interface IServer
    {
        void RaiseEvent();
        event ServerEventHandler ServerEvent;        
    }
}
